def manage_data_to_area(num):
    num_x, num_y = str(num).split('.')
    num = float(num_x + '.' + num_y[0:2])
    return num


def choose_Y_area(mid):
    if mid > 4:
        return "75%"
    else:
        return "25%"


def choose_X_area(mid):
    while mid > 4:
        mid -= 4
    return str(mid * 20) + "%"


def manage_data_to_box(data: list):
    all_data_clear = []
    for i in range(0, len(data)):
        all_data_clear.append(list(map(lambda x: int(x), data[i].split(','))))

    return all_data_clear


def to_date(data):

    a,b,c = map(lambda x: int(x), data.split(','))

    return a,b,c
